package com.example.mobile2021606170hsy0406homework;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private TextView tvMainTitle;
    private Button btMainAb;
    private Button btMainMax;
    private Button btMainDecode;
    private Button btMainTransition;
    private Button btMainEvaluation;
    private Button btMainEvaluate;
    private Button btMainJudge;
    private Button btMainCalculate;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         initView();
        btMainAb.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this, Main2Activity.class);
                startActivity(intent);
            }
        });
        btMainMax.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main3Activity.class);
                startActivity(intent);
            }
        });
        btMainDecode.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main4Activity.class);
                startActivity(intent);

            }
        });
        btMainTransition.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main5Activity.class);
                startActivity(intent);
            }
        });
        btMainEvaluation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main6Activity.class);
                startActivity(intent);
            }
        });
        btMainEvaluate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main7Activity.class);
                startActivity(intent);
            }
        });
        btMainJudge.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main8Activity.class);
                startActivity(intent);
            }
        });
        btMainCalculate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, Main9Activity.class);
                startActivity(intent);
            }
        });
            }

            private void initView() {
                tvMainTitle = (TextView) findViewById(R.id.tv_main_title);
                btMainAb = (Button) findViewById(R.id.bt_main_ab);
                btMainMax = (Button) findViewById(R.id.bt_main_max);
                btMainDecode = (Button) findViewById(R.id.bt_main_decode);
                btMainTransition = (Button) findViewById(R.id.bt_main_transition);
                btMainEvaluation = (Button) findViewById(R.id.bt_main_evaluation);
                btMainEvaluate = (Button) findViewById(R.id.bt_main_evaluate);
                btMainJudge = (Button) findViewById(R.id.bt_main_judge);
                btMainCalculate = (Button) findViewById(R.id.bt_main_calculate);
            }


        }


